package com.seu.me.test.policy;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.xml.bind.annotation.*;
import java.util.List;

/**
 * 理赔申请xml信息
 *
 * @author liangfeihu
 * @since 2019/10/17 17:51
 */
@Data
@ToString
@NoArgsConstructor
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "bodyInfo")
public class ClaimApplyInfo {
    private String GrpApplyNo;
    private String ApplyNo;
    private String CustomerName;
    private String CustomerIDType;
    private String CustomerIDNo;
    private String CustomerGender;
    private String CustomerBirthday;
    private String ApplyName;
    private String ApplyIDType;
    private String ApplyIDNo;
    private String ApplyGender;
    private String ApplyBirthday;
    private String CaseInType;
    private String AccDate;
    private String OutType;

    @XmlElement(name = "ContListInfo")
    private ContData contData;

    @Data
    @ToString
    @NoArgsConstructor
    @XmlAccessorType(XmlAccessType.FIELD)
    public static class ContData {
        @XmlElements(value = {@XmlElement(name = "ContList", type = ContInfo.class)})
        private List<ContInfo> ContInfoList;
    }

    @Data
    @ToString
    @NoArgsConstructor
    @XmlAccessorType(XmlAccessType.FIELD)
    public static class ContInfo {
        private String ContNo;
        private String InsuredName;
    }

}
